Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 1 - Introduction to QuickDraw 3D / QuickDraw 3D Reference
QuickDraw 3D Routines / Managing Sets


Q3Set_GetNextElementType

You can use the Q3Set_GetNextElementType function to iterate through the elements in a set.

TQ3Status Q3Set_GetNextElementType (
TQ3SetObject set, 
TQ3ElementType *type);
set
A set object.
type
On entry, an element type, or kQ3ElementTypeNone to get the first element type in the specified set. On exit, the element type that immediately follows the specified element type in the set, or kQ3ElementTypeNone if there are no more element types.
DESCRIPTION
The Q3Set_GetNextElementType function returns, in the type parameter, the type of the element that immediately follows the element having the type specified by the type parameter in the set specified by the set parameter. To get the type of the first element in the set, pass kQ3ElementTypeNone in the type parameter. Q3Set_GetNextElementType returns kQ3ElementTypeNone when it has reached the end of the list of elements.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996